package control

import (
	"canliancontract/common"
	"canliancontract/log"
	"github.com/hyperledger/fabric/core/chaincode/shim"
	"github.com/hyperledger/fabric/protos/peer"
)

func (t *CanlianTrace) Invoke(stub shim.ChaincodeStubInterface) peer.Response {
	log.Logger.Info("Invoke")
	function, args := stub.GetFunctionAndParameters()
	return Execute(common.StrFirstToUpper(function),stub,args)
}